home *** CD-ROM | disk | FTP | other *** search
- //
- // This macro creates the standard linear regression breadboard
- //
- subtitleTextBox. setText ("")
- mainTextBox. setText ("")
- //
- // Record here if necessary
- //
- activeBreadboard. deleteObject ( "tanhAxon" )
- activeBreadboard. deleteObject ( "fullSynapse1" )
- activeBreadboard. maximize ( )
- activeBreadboard. select ( "fullSynapse" , FALSE )
-
- activeBreadboard. deleteObject ( "inputAxonBackprop" )
- activeBreadboard. replaceWith ( "hidden1Synapse" , "StandardFull" )
- weightViewer. setActiveAccessPoint ( "Weights" )
- activeBreadboard. replaceWith ( "outputAxon" , "GaussianAxon" )
- dLLPostprocessor. setActiveAccessPoint ( "Pre-Activity" )
- activeBreadboard. replaceWith ( "linearTanhAxon" , "Axon" )
- linearTanhAxon. setName ( "axon" )
- activeBreadboard. replaceWith ( "criterion" , "L1Criterion" )
- desiredFile. setActiveAccessPoint ( "Desired Signal" )
-
- fullSynapse. connectTo ( "axon" )
- axon. moveTo ( 400 , 192 )
- criterion. moveTo ( 529 , 204 )
-
-
- activeBreadboard. deleteObject ( "linearTanhAxonBackpropGradient" )
- activeBreadboard. setAnimatePoint ( 555,301 )
- activeBreadboard. stampAndMove ( "ThresholdAxon" , "thresholdAxon" )
- axon. connectTo ( "thresholdAxon" )
- dLLPostprocessor. moveOn ( "thresholdAxon" )
- dLLPostprocessor. setActiveAccessPoint ( "Activity" )
- outputAxon. setRows ( 92 )
-
- activeBreadboard. maximize ( )
- thresholdAxon. moveTo ( 472 , 306 )
- activeBreadboard. setAnimatePoint ( 580 ,306 )
- activeBreadboard. stampAndMove ( "L2Criterion" , "criterion1" )
- thresholdAxon. connectTo ( "criterion1" )
- costViewer. moveOn ( "criterion1" )
- costViewer. setActiveAccessPoint ( "Average Cost" )
- activeBreadboard. maximize ( )
- weightViewer. closeEngineWindow ( )
- activeBreadboard. maximize ( )
- activeBreadboard. stampOnAndMove ( "MatrixViewer" , "fullSynapse" )
- matrixViewer. setActiveAccessPoint ( "Weights" )
- activeBreadboard. select ( "matrixViewer" , FALSE )
- matrixViewer. setFixWindowTitle ( TRUE )
- matrixViewer. setWindowTitle ( "Alpha Values" )
-
- // DLLs
-
- dllPath=macro.pathFromMacro(".\adatron.dll")
- hidden1Synapse. setDLLName ( "adatron" , dllPath )
- hidden1Synapse. activateDLL ( TRUE )
- fullSynapseBackprop. setDLLName ( "adatron_dp" ,dllPath )
- fullSynapseBackprop. activateDLL ( TRUE )
- fullSynapse. setDLLName ( "adatron" , dllPath)
- fullSynapse. activateDLL ( TRUE )
- criterion. setDLLName ( "adatron" , dllPath )
- criterion. activateDLL ( TRUE )
- activeBreadboard. deleteObject ( "fullSynapseBackpropGradient" )
- activeBreadboard. deleteObject ( "outputAxonBackpropGradient" )
-
- activeBreadboard. stampOnAndMove ( "Step" , "fullSynapseBackprop" )
- fullSynapseBackpropGradient. setDLLName ( "adatron" , dllPath )
- fullSynapseBackpropGradient. activateDLL ( TRUE )
- activeBreadboard. maximize ( )
- activeBreadboard. stampOnAndMove ( "File" , "criterion1" )
- file. setActiveAccessPoint ( "Desired Signal" )
- activeBreadboard. select ( "file" , FALSE )
- filePath=macro.pathFromMacro(".\spiral_target.ibe")
- file. addFile (filePath , FALSE )
- activeBreadboard. maximize ( )
- activeBreadboard. maximize ( )
- activeBreadboard. select ( "file" , FALSE )
- file. setNormalize ( TRUE )
- file. setLowerBound ( -1.000000 )
- activeBreadboard. select ( "fullSynapse" , FALSE )
- fullSynapse. setWeightVariance ( 0.000000 )
- fullSynapse. setWeightMean ( 0.100000 )
- outputAxon. setWeightVariance ( 0.000000 )
-
- activeBreadboard. select ( "fullSynapseBackpropGradient" , FALSE )
- fullSynapseBackpropGradient. setStepSize (0.100000 )
- control. setEpochCounter ( 0 )
- activeBreadboard. select ( NULL, FALSE )
-
- activeBreadboard. stampOnAndMove ( "ThresholdTransmitter" , "control" )
- thresholdTransmitter. setBeta ( 1.000000 )
- thresholdTransmitter. setLessThan ( 1 )
- thresholdTransmitter. setThreshold ( 2.000000 )
- thresholdTransmitter. toggleConnection ( "outputAxon" , "assignVariance" )
- activeBreadboard. stampOnAndMove ( "ArrowEngine" , "outputAxon" )
- activeBreadboard. stampOnAndMove ( "ArrowEngine" , "matrixViewer" )
-
- controlBackprop. setBatch ( FALSE )
- control. setEpochs ( 150 )
-
- //
- // fill in text
- //
- TextBoxPath = macro. pathFromMacro("textBox.txt")
- NextMacroPath = macro. pathFromMacro ( ".\2 summary.nsm" )
- nextButton. setMacroPath ( NextMacroPath )
- CancelMacroPath= macro.pathFromMacro("..\minimize.nsm")
- cancelButton. setMacroPath ( CancelMacroPath)
- SubtitleIndex = subtitleTextBox. setTextFromFile (TextBoxPath, 0)
- MainIndex = mainTextBox. setTextFromFile (TextBoxPath, 0)
-
-